﻿@{
    ViewBag.Title = "Tạo rạp chiếu phim";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
    var isStepTheater = (bool)ViewBag.StepTheater;
    var isStepSetting = (bool)ViewBag.StepSetting;
    var isStepSuccess = (bool)ViewBag.IsStepSuccess;
    var isStepFail = (bool)ViewBag.IsStepFail;
    var modelCreated = (FTBS.Models.Entities.Concert.SettingTheaterConcertEntity)ViewBag.ModelCreated;
    if (isStepSuccess == true || isStepFail == true)
    {
        modelCreated.IsFinish = true;
    }
        
}

<div class="example">
    @if (isStepTheater)
    {
        <legend style="margin-top: 10px; text-align:center">Thêm mới rạp phim</legend>
        <div class="stepper rounded" data-steps="3" data-role="stepper" data-start="1"></div>
        
        <div id="createTheaterPartial">
            @Html.Partial("CreateTheaterPartial", modelCreated)
        </div>
    }
    @if (isStepSetting)
    {
        <legend style="margin-top: 10px; text-align:center">Thêm cài đặt mới</legend>
        <div class="stepper rounded" data-steps="3" data-role="stepper" data-start="2"></div>
        
        <div id="createSettingPartial">
            @Html.Partial("CreateSettingPartial", modelCreated)
        </div>
    }
    @if (isStepSuccess)
    {
        <legend style="margin-top: 10px; text-align:center">Thêm mới rạp chiếu và cài đặt thành công!</legend>
        <div class="stepper rounded" data-steps="3" data-role="stepper" data-start="3"></div>
        <div>
            @Html.Partial("SuccessPartial", modelCreated)
        </div>
    }
    @if (isStepFail)
    {
        <legend style="margin-top: 10px; text-align:center">Thêm mới rạp chiếu và cài đặt thất bại!</legend>
        <div class="stepper rounded" data-steps="3" data-role="stepper" data-start="3"></div>
        <div style="height:150px">
            @Html.Partial("FailPartial")
        </div>
    }
</div>


